package File;

import java.nio.file.FileStore;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;

public class FileSystemDemo {
    static void show(String id, Object o) {
        System.out.println(id + ": " + o);
    }
    public static void main(String[] args) {
        FileSystem fs = FileSystems.getDefault();
        for (FileStore fileStore : fs.getFileStores()) {
            System.out.println(fileStore);
        }
        for (Path rootDirectory : fs.getRootDirectories()) {
            System.out.println(rootDirectory);
        }
        System.out.println(fs.getSeparator());
        System.out.println(fs.getUserPrincipalLookupService());
        System.out.println(fs.isOpen());
        System.out.println(fs.isReadOnly());
        System.out.println(fs.provider());
        System.out.println(fs.supportedFileAttributeViews());
    }
}
